const { list } = require('./data/play-records')
const { listPreview } = require('./data/lucky-money')
const base = '/operation'
module.exports = [{
  url: `${base}/playRecords/previewReturnMoney`,
  type: 'get',
  response: config => {
    return listPreview()
  }
}, {
  url: `${base}/playRecords`,
  type: 'get',
  response: config => {
    const { page, limit, orgUnitId, roomId, movieName, userId } = config.query
    return list(page, limit, movieName, orgUnitId, userId, roomId)
  }
}]

